<?php
/**
 * Created by IntelliJ IDEA.
 * User: 张伯发
 * Date: 2019/7/31
 * Time: 15:38
 */

namespace App\Model\Entity\Demo;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;
/**
 *
 * Class User
 *
 * @since 2.0
 *
 * @Entity(table="banner", pool="db2.pool")
 */
class Banner extends Model
{

    /**
     *
     * @Id()
     * @Column(name="id")
     * @var int|null
     */
    private $id;

    /**
     * @Column(name="banner_image_url", prop="banner_url")
     * @var string
     */
    private $bannerImageUrl;

    /**
     * @return int|null
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @param int|null $id
     */
    public function setId(?int $id): void
    {
        $this->id = $id;
    }

    /**
     * @return string
     */
    public function getBannerImageUrl(): string
    {
        return $this->bannerImageUrl;
    }

    /**
     * @param string $bannerImageUrl
     */
    public function setBannerImageUrl(string $bannerImageUrl): void
    {
        $this->bannerImageUrl = $bannerImageUrl;
    }






}
